home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 October
/
EnigmA AMIGA RUN 31 (1998)(G.R. Edizioni)(IT)[!][issue 1998-10].iso
/
earkit
/
chat
/
amirc_20
/
rexx
/
echo.amirx
< prev
next >
Wrap
Text File
|
1998-09-22
|
1KB
|
47 lines
/* ECHOdemo.amirx by Ariel Magnum
** Display a demonstartion of AmIRC Echo command
** With styles,colours etc.
** Demonstrates using of styles and cecho functions
*/
Options Results /* Enable rc/result return codes */
signal on syntax /* Enables syntax checking */
prefix='ECHODemo' /* Prefix for echos */
colour=3 /* Colour fo echos */
/* Begin */
cecho(bold("Bold"))
cecho(underline("Underline"))
cecho(inverse("Inverse"))
cecho(underline(bold("Bold+Underline")))
do colour=0 to 5
cecho("This is colour" colour)
end
prefix="End"
cecho(underline("Bye") bold("Bye"))
/* End */
exit
/* Shared Functions */
bold: /* This function bolds text*/
return '02'x||arg(1)||'02'x
underline: /* This function underlines text*/
return '1F'x||arg(1)||'1F'x
inverse: /* This function inverses text*/
return '16'x||arg(1)||'16'x
cecho: /* This function echo's text to listview*/
"ECHO P="d2c(27)"b«"prefix"» C="colour arg(1)
return 0
syntax: /* This function returns where you made a syntax error */
prefix="Syntax"
cecho("Command on line" SIGL "returned" RC ":" errortext(rc) sourceline(SIGL))
exit